package services;

import org.apache.openjpa.persistence.PersistenceException;
import domains.User;

public interface IUserService {
	public int addUser (String login, String password, String password2, String code, String fio, String birthday);
	public User findUserById(Integer id) throws PersistenceException;
	public User findUserByLogin(String login);
	public boolean findUserByLoginAndPassword(String login, String password);
	public void deleteUserById(Integer id_user);
	public int updateUser(Integer id_user, String fio, String birthday, String login, String password_old, String password, String password2);
}

